<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        v-bind:单向数据绑定<input type="text" v-bind:value="str">
        <br><br><br>
        v-model:双向数据绑定<input type="text" v-model:value="str">
        <br><br><br>
        v-model的简写<input type="email" v-model="email">
        <hr>
        lazy修饰符<input type="email" v-model.lazy="email">
        <br><br>
        number修饰符<input type="email" v-model.number="email">
        <br><br>
        trim<input type="email" v-model.trim="email">

    </div>

    <script type="text/javascript">
        new Vue({
            el:"#app",
            data:{
                str:"学习v-model指令",
                email:"v-model简写"
            }
        })
    </script>
</body>
</html>